colorbutton: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 23:22:09 +0000 (18:22 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:33 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations

gtk/gtkcolorbutton.c

index 82ae315aa4d99763f18a017366f579a3d9982256..f3334599fabaa5a067668b52387c0da3b1a21cf9 100644 (file)
@@ -160,7 +160,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
   g_object_class_override_property (gobject_class, PROP_USE_ALPHA, "use-alpha");
 
   /**
-   * GtkColorButton:title:
+   * GtkColorButton:title: (attributes org.gtk.Property.get=gtk_color_button_get_title org.gtk.Property.set=gtk_color_button_set_title)
    *
    * The title of the color chooser dialog
    */
@@ -211,7 +211,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
                                                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
   /**
-   * GtkColorButton:modal:
+   * GtkColorButton:modal: (attributes org.gtk.Property.get=gtk_color_button_get_modal org.gtk.Property.set=gtk_color_button_set_modal)
    *
    * Whether the color chooser dialog should be modal.
    */
@@ -528,7 +528,7 @@ set_use_alpha (GtkColorButton *button,
 }
 
 /**
- * gtk_color_button_set_title:
+ * gtk_color_button_set_title: (attributes org.gtk.Method.set_property=title)
  * @button: a `GtkColorButton`
  * @title: String containing new window title
  *
@@ -553,7 +553,7 @@ gtk_color_button_set_title (GtkColorButton *button,
 }
 
 /**
- * gtk_color_button_get_title:
+ * gtk_color_button_get_title: (attributes org.gtk.Method.get_property=title)
  * @button: a `GtkColorButton`
  *
  * Gets the title of the color chooser dialog.
@@ -569,7 +569,7 @@ gtk_color_button_get_title (GtkColorButton *button)
 }
 
 /**
- * gtk_color_button_set_modal:
+ * gtk_color_button_set_modal: (attributes org.gtk.Method.set_property=modal)
  * @button: a `GtkColorButton`
  * @modal: %TRUE to make the dialog modal
  *
@@ -593,7 +593,7 @@ gtk_color_button_set_modal (GtkColorButton *button,
 }
 
 /**
- * gtk_color_button_get_modal:
+ * gtk_color_button_get_modal: (attributes org.gtk.Method.get_property=modal)
  * @button: a `GtkColorButton`
  *
  * Gets whether the dialog is modal.